package com.lzw.mapper.student;

import com.lzw.pojo.Feedback;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SFM {
    @Insert("INSERT INTO dormitorymanagement.feedback(student, feedback_content, feedback_date) VALUES (#{student}, #{feedbackContent}, #{feedbackDate})")
    void add(Feedback feedback);

    List<Feedback> get(String student);
}
